home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / dr_main1.cpp < prev    next >
C/C++ Source or Header  |  1994-11-12  |  3KB  |  77 lines

  1. #include <alloc.h>      // The example of simple graphics editor interface
  2. #include <iostream.h>   // creation. The program shows linemenu with
  3. #include <conio.h>    // Paint Brush like choices: File, Edit, View etc.,
  4.             // Help system explains the behavior of package
  5.  
  6. #include "kh_draw.h"
  7. #include "progkit.h"
  8.  
  9. extern unsigned _stklen = 16000;
  10.  
  11. void main()
  12.     {
  13.     if(!init_KNOW_HOW(-1, 1))
  14.         return;
  15.     ///////////////////////////
  16.     rect r_help(5, 5, 70, 25);
  17.     help_object = new HypertextView(r_help, "draw.hlp", "_help.pcy",
  18.                   MOVE | RESIZE,
  19.                   pScreenSet->sub_interval,
  20.                                   SHOW_BORDER, 10, "HOTKEY",
  21.                                   BLUE, YELLOW, 56);
  22.  
  23.     KH_Draw* kh_draw = new KH_Draw("", "work.buf", 100);
  24.     KH_Draw* kh_draw1 = new KH_Draw("", "work1.buf", 200);
  25.  
  26.     kh_draw->set_ret(RET_CANCEL | RET_STACKED);
  27.     kh_draw1->set_ret(RET_CANCEL | RET_STACKED);
  28.  
  29.     rect r_base(0, 0, 80, 25);
  30.  
  31.     Window* w1 = new Window(r_base, "", "", 0, NO_BORDER, NO_BORDER);
  32.     w1->set_ret(RET_STACKED);
  33.  
  34.     ProgramKit* know_how_draw = new ProgramKit(100, loc(39, 12));
  35.  
  36.     know_how_draw->background(w1);
  37.     know_how_draw->add(kh_draw);
  38.     know_how_draw->add(kh_draw1);
  39.  
  40.     pColorSet->loadColorSet(1);
  41.     know_how_draw->WindowManager::show_window(w1);
  42.     pColorSet->loadColorSet(0);
  43.     know_how_draw->WindowManager::show_window(kh_draw);
  44.     know_how_draw->WindowManager::show_window(kh_draw1);
  45.  
  46.     know_how_draw->exe();      // process the program
  47.  
  48.     delete help_object;
  49.     delete know_how_draw;
  50.  
  51.     close_KNOW_HOW();
  52.     closegraph();
  53. cout << "KNOW-HOW 5.0,Software development kit,Library in source codes (Borland C++ 3.x)\n";
  54. cout << "█████████████████████████████████████████████████████████████████████████████\n";
  55. cout << ">>> KNOW-HOW.Interface: GUI, LJ fonts(SFP) screen output, PCX, multiple over-\n";
  56. cout << "lapped windows, Scripts and macroses. DOS\n";
  57. cout << ">>> KNOW-HOW.DEBUGGER: For any situations, including hang-up. DOS\n";
  58. cout << ">>> KNOW_HOW.GRAPHICS: Using common code for any graphics library. Now it is\n";
  59. cout << "realized now for BGI and Windows GDI. Scrolling, Zooming, reflection of image,\n";
  60. cout << "rotations and complex rotations. Rotated and filled BGI fonts. DOS, WINDOWS\n";
  61. cout << ">>> KNOW-HOW.SLANG: Basic-like language. Multy-file programs, FOR, IF and so\n";
  62. cout << "on operators. User could derive from Slang the child class with new operators\n";
  63. cout << "to access functions of his concrete package. DOS, WINDOWS\n";
  64. cout << ">>> KNOW-HOW.VECTOR: Vector pictures editor. Simple KNOW-HOW.GRAPHICS\n";
  65. cout << "interpreter in DOS or Windows. Powerfull tool for maketing BGI, GDI and so on.\n";
  66. cout << ">>> KNOW-HOW.DRAW: PCX pictures editor. All standart image-editing functions.\n";
  67. cout << ">>> KNOW-HOW.PRINT: Create on disk virtual screen of any size, show, scroll\n";
  68. cout << "on screen or print on different printers with any deformation. DOS.\n";
  69. cout << ">>> KNOW-HOW.DATASHELL: Shell for Paradox Engine 3.01 or any other database\n";
  70. cout << "engine. View and edit tables and querries in Paradox-like style. Multy-table\n";
  71. cout << "QBE querries. Print reports in user-defined form. DOS.\n";
  72. cout << ">>> KNOW-HOW.GRAF: Business and scientific diagrams. Line, Markers,\n";
  73. cout << "Line-and-markers, Bar, 3d-Bar, Stacked bar graphs...  DOS, WINDOWS\n";
  74.  
  75.     }
  76.  
  77.